package net.bwie.realtime.vehicle.service.impl;

import net.bwie.realtime.vehicle.bean.*;
import net.bwie.realtime.vehicle.mapper.VehicleRealtimeMapper;
import net.bwie.realtime.vehicle.service.VehicleRealtimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: FuHe
 * @Date: 2025/5/27
 */
@Service
public class VehicleRealtimeServinceImpl implements VehicleRealtimeService {
    @Autowired
    VehicleRealtimeMapper vehicleRealtimeMapper;

    @Override
    public Double getUvCount(String date) {
        return vehicleRealtimeMapper.selectUvCount(date);
    }

    @Override
    public Double getVinHealth(String date) {
        return vehicleRealtimeMapper.selectHealth(date);
    }

    @Override
    public List<VehicleProvinceCount> getVinProvince(String date) {
        return vehicleRealtimeMapper.selectProvinceCount(date);
    }

    @Override
    public List<VehicleProvinceCount> getVinAlarm(String date) {
        return vehicleRealtimeMapper.selectAlarm(date);
    }

    @Override
    public List<VehicleTrip> getVinTrip(String date) {
        return vehicleRealtimeMapper.selectTrip(date);
    }

    @Override
    public List<VehicleStatus> getVehicleConditionMonitoring(String date) {
        return vehicleRealtimeMapper.selectStatus(date);
    }

    @Override
    public List<VehicleAlarm> getVinAlarm2(String date) {
        return vehicleRealtimeMapper.selectAlarm2(date);
    }

    @Override
    public List<VehicleVinSpeed> getVinSpeed(String date) {
        return vehicleRealtimeMapper.selectVinSpeed(date);
    }

    @Override
    public List<VehicleVinSpeed> getVinDistance(String date) {
        return vehicleRealtimeMapper.selectVinDistance(date);
    }

    @Override
    public List<SugarOne> getVehicleHealth(String date) {
        return vehicleRealtimeMapper.selectVinHealth(date);
    }


}
